# 用于为辖区号+2
def idAdd2():
    input_file = "temp.txt"
    output_file = "output.txt"
    # 使用 utf-8 编码打开文件，可根据实际情况修改为正确的编码
    with open(input_file, 'r', encoding='utf-8') as infile, open(output_file, 'w', encoding='utf-8') as outfile:
        for line in infile:
            parts = line.strip().split(',')
            if parts:
                first_part = parts[0].strip('(')
                try:
                    num_str = first_part # 提取括号内的第一个数字
                    print(num_str)
                    num = int(num_str)
                    num += 2
                    new_first_part = f"({num}"
                    parts[0] = new_first_part
                except ValueError:
                    pass  # 处理无法转换为整数的情况，保持原数据不变
                new_line = ','.join(parts)
                outfile.write(new_line + '\n')


# 生成Camera数据
def pCamera():
    for i in range(1,20):
        for j in range(1,4):
            print("(",3*i+j-3,", ",i,", 'rtsp://domain.com:port/address",3*i+j-3,"', 0, 1),", sep="")
        
# 生成识别结果数据
def pResult():
    for i in range(1, 51):
        for j in range(1, 8):
            for k in range(2):
                print("(",i,", '2025-1-",j," ",k,"2:59:59', ",k,"),", sep='')
                
                
if __name__ == "__main__":
    pCamera()